<template>
	<uploadView :tips="field.placeholder" :maxCount="readonly ? 0 : field.maxCount" :customUrl="field.customUrl"
		:readonly="readonly" :value="value" @update:value="updateValue" />
</template>

<script>
	export default {
		props: {
			value: Array,
			field: Object,
			readonly: Boolean,
		},
		methods: {
			updateValue(newValue) {
				this.$emit('update:value', newValue);
			},
		},
	};
</script>